package com.example.design.patterns.冰河.行为模式.状态模式.context;

import com.example.design.patterns.冰河.行为模式.状态模式.state.Weather;
import lombok.Data;

/**
 *  Context 定义客户感兴趣的接口.维护一个ConcreteState子类的实例,这个实例定义当前状态.
 */
@Data
public class Context {
    private Weather weather;

    public String weatherMessage() {
        return weather.getWeather();
    }
}
